<template>
  <div id="app">
    <div id="header">
      <div class="header">
        <img class="logo" src="@/assets/logo.png" />
        <ul id="list">
            <li> <router-link to="/home" active-class="active"> 课程学习 </router-link> </li>
            <li> <router-link to="/Compe" active-class="active"> 在线考试 </router-link></li>
            <li> <router-link to="/exam" active-class="active"> 知识竞赛 </router-link></li>
            <li><router-link to="/Bank" active-class="active"> 题库训练 </router-link> </li>
            <li>系统公告</li>
            <li>用户中心</li>
        </ul>
      </div>
    </div>
    <router-view />
  </div>
</template>

<style>
#header {
  width: 100%;
  height: 60px;
  background: #4377fb;
} 
.header {
  width:1586px;
  margin: 0 auto;
  height: 60px;
  display:flex;
  align-items: center;
  justify-content: space-around;
}
.logo {
  width: 134px;
  height: 40px;
}
#list {
  display: flex;
}
#list li {
  width:89px;
  height:29px;
  cursor: pointer;
  color: #fff;
  margin-right:18px;
}
a {
  color: #fff;
  display: inline-block;
}
.active {
  width:84px;
  height:26px;
  color: #000;
  border-radius: 50px;
  background: #ffd550;
  line-height: 26px;
  text-align: center;
}
</style>
